/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package app.scraper.textyard.model;

import java.util.List;

import com.google.gson.annotations.SerializedName;

/**
 * 
 * @author RnSn
 */
public class Department implements Comparable<Department> {

	private int id;

	@SerializedName("Department_Code")
	private String depCode;

	private List<Course> courses;

	private Term term;

	public int getId() {
		return id;
	}

	public void setId(final int id) {
		this.id = id;
	}

	public void setCourses(final List<Course> cources) {
		this.courses = cources;
	}

	public List<Course> getCources() {
		return courses;
	}

	public String getDepCode() {
		return depCode;
	}

	public void setDepCode(final String depCode) {
		this.depCode = depCode;
	}

	public Term getTerm() {
		return term;
	}

	public void setTerm(final Term term) {
		this.term = term;
	}

	@Override
	public String toString() {
		return "Department " + depCode + " " + courses;
	}

	@Override
	public int compareTo(final Department o) {
		return depCode.compareTo(o.depCode);
	}

}
